<!DOCTYPE HTML>
<html class="no-js">
  
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="common/js/form_init.js" id="form_init_script"
    data-name="">
    </script>
    <link rel="stylesheet" href="<?php echo base_url();?>assets/css/bootstrap.min.css">
  <style>
    body {
      padding-top: 60px;
      padding-bottom: 40px;
    }
  </style>
  <!--<link rel="stylesheet" href="<?php /*echo base_url();*/?>/assets/css/bootstrap-responsive.min.css">-->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/css/main.css">

  <script src="<?php echo base_url();?>assets/js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
  <script src="<?php echo base_url();?>assets/js/restaurant.js"></script>
    <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>assets/css/test/default.css?version=114"
    id="theme" />
    <title>
    Nhân viên
    </title>
  </head>
  
  <body>
    <?php $this->load->view('supermenu');?>

  <style>#docContainer .fb_cond_applied{ display:none; }</style><noscript><style>#docContainer .fb_cond_applied{ display:inline-block; }</style></noscript><form class="fb-toplabel fb-100-item-column selected-object" id="docContainer"
action="" enctype="multipart/form-data" method="POST" novalidate="novalidate"
data-form="preview">
  <div class="fb-form-header" id="fb-form-header1" style="min-height: 0px;">
    <a class="fb-link-logo" id="fb-link-logo1" style="max-width: 104px;" target="_blank"><img title="Alternative text" class="fb-logo" id="fb-logo1" style="width: 100%; display: none;" alt="Alternative text" src="<?php echo base_url();?>assets/img/avatars/no-image.jpg"/></a>
  </div>
  <div class="section" id="section1">
    <div class="column ui-sortable" id="column1">
      <div class="fb-item fb-100-item-column" id="item1">
        <div class="fb-header">
          <h2>
          <?php if ($isedit){?>
          Chỉnh sửa thông tin nhân viên
          <?php }else {?>
           Thêm nhân viên mới
           <?php }?>
          </h2>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item2">
        <div class="fb-grouplabel">
        <label id="item2_label_0" style="display: inline;">Tên tài khoản</label>
        </div>
        <div class="fb-input-box">
         <?php if ($isedit){?>
         <input name="text2" id="item2_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" value="<?php echo $info->username; ?>" />
        <?php }else{?>
        <input name="text2" id="item2_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" />
        <?php }?>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item15">
        <div class="fb-grouplabel">
          <label id="item15_label_0">Mật khẩu</label>
        </div>
        <div class="fb-input-box">
        <?php if ($isedit){?>
        <input name="password15" id="item15_password_1" type="password" maxlength="254"
          placeholder="" data-hint="" autocomplete="off" value="<?php echo $info->password; ?>" />
        </div>
        <?php }else{?>
          <input name="password15" id="item15_password_1" type="password" maxlength="254"
          placeholder="" data-hint="" autocomplete="off" />
        </div>
        <?php }?>
      </div>
      <div class="fb-item fb-100-item-column" id="item16">
        <div class="fb-grouplabel">
          <label id="item16_label_0" style="display: inline;">Nhập lại mật khẩu</label>
        </div>
        <div class="fb-input-box">
        <?php if ($isedit){?>
         <input name="password16" id="item16_password_1" type="password" maxlength="254"
          placeholder="" data-hint="" autocomplete="off" value="<?php echo $info->password; ?>" />
        <?php }else{?>
          <input name="password16" id="item16_password_1" type="password" maxlength="254"
          placeholder="" data-hint="" autocomplete="off" />
          <?php }?>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item3">
        <div class="fb-grouplabel">
          <label id="item3_label_0" style="display: inline;">Tên</label>
        </div>
        <div class="fb-input-box">
        <?php if ($isedit){?>
          <input name="text3" id="item3_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" value="<?php echo $info->first_name; ?>" />
        <?php }else{?>
          <input name="text3" id="item3_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" />
        <?php }?>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item4">
        <div class="fb-grouplabel">
          <label id="item4_label_0" style="display: inline;">Họ đệm</label>
        </div>
        <div class="fb-input-box">
        <?php if ($isedit){?>
        <input name="text4" id="item4_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" value="<?php echo $info->last_name; ?>" />
        <?php }else{?>
          <input name="text4" id="item4_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" />
        <?php }?>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item5">
        <div class="fb-grouplabel">
          <label id="item5_label_0" style="display: inline;">Địa chỉ</label>
        </div>
        <div class="fb-input-box">
        <?php if ($isedit){?>
          <input name="text5" id="item5_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" value="<?php echo $info->address; ?>" />
        <?php }else{?>
          <input name="text5" id="item5_text_1" type="text" maxlength="254" placeholder=""
          data-hint="" autocomplete="off" />
        <?php }?>
        </div>
      </div>
      <div class="fb-item fb-100-item-column" id="item7">
        <div class="fb-grouplabel">
          <label id="item7_label_0">Số điện thoại</label>
        </div>
        <div class="fb-phone">
        <?php if ($isedit){?>
          <input name="tel7" id="item7_tel_1" type="tel" data-hint="" value="<?php echo $info->phone_number; ?>" />
        <?php }else{?>
          <input name="tel7" id="item7_tel_1" type="tel" data-hint="" />
        <?php }?>
        </div>
      </div>
      <div class="fb-item fb-50-item-column" id="item8">
        <div class="fb-grouplabel">
          <label id="item8_label_0" style="display: inline;">Ngày sinh</label>
        </div>
        <div class="fb-input-date">
        <?php if ($isedit){?>
          <input name="date8" class="datepicker" id="item8_date_1" type="date" data-hint="" value="<?php echo $info->date_of_birth; ?>"
          />
        <?php }else{?>
          <input name="date8" class="datepicker" id="item8_date_1" type="date" data-hint=""
          />
        <?php }?>
        </div>
      </div>
      <div class="fb-item fb-50-item-column" id="item9">
        <div class="fb-grouplabel">
          <label id="item9_label_0" style="display: inline;">Hình đại diện</label>
        </div>
        <div class="fb-button">
          <input name="file9" id="item9_file_1" type="file" data-hint="" />
        </div>
      </div>
      <div class="fb-item fb-three-column fb-100-item-column" id="item17">
        <div class="fb-grouplabel">
          <label id="item17_label_0">Vị trí</label>
        </div>
        <div class="fb-radio">
        <?php if ($isedit){?>
          <?php if ($info->role == '2'){?>
          <label id="item17_0_label"><input name="radio17" id="item17_0_radio" type="radio" data-hint="" value="is Admin" /><span class="fb-fieldlabel" id="item17_0_span">is Admin</span></label>
          <label id="item17_1_label"><input name="radio17" id="item17_1_radio" type="radio" checked value="is Manager" /><span class="fb-fieldlabel" id="item17_1_span">is Manager</span></label>
          <label id="item17_2_label"><input name="radio17" id="item17_2_radio" type="radio" value="is Waiter" /><span class="fb-fieldlabel" id="item17_2_span">is Waiter</span></label>
          <?php }elseif ($info->role == '1') {?>
          <label id="item17_0_label"><input name="radio17" id="item17_0_radio" type="radio" data-hint="" checked value="is Admin" /><span class="fb-fieldlabel" id="item17_0_span">is Admin</span></label>
          <label id="item17_1_label"><input name="radio17" id="item17_1_radio" type="radio" value="is Manager" /><span class="fb-fieldlabel" id="item17_1_span">is Manager</span></label>
          <label id="item17_2_label"><input name="radio17" id="item17_2_radio" type="radio" value="is Waiter" /><span class="fb-fieldlabel" id="item17_2_span">is Waiter</span></label>
          <?php }else { ?>
          <label id="item17_0_label"><input name="radio17" id="item17_0_radio" type="radio" data-hint="" value="is Admin" /><span class="fb-fieldlabel" id="item17_0_span">is Admin</span></label>
          <label id="item17_1_label"><input name="radio17" id="item17_1_radio" type="radio" value="is Manager" /><span class="fb-fieldlabel" id="item17_1_span">is Manager</span></label>
          <label id="item17_2_label"><input name="radio17" id="item17_2_radio" type="radio" checked value="is Waiter" /><span class="fb-fieldlabel" id="item17_2_span">is Waiter</span></label>
          <?php }?>
        <?php }else{?>
          <label id="item17_0_label"><input name="radio17" id="item17_0_radio" type="radio" data-hint="" value="is Admin" /><span class="fb-fieldlabel" id="item17_0_span">is Admin</span></label>
          <label id="item17_1_label"><input name="radio17" id="item17_1_radio" type="radio" value="is Manager" /><span class="fb-fieldlabel" id="item17_1_span">is Manager</span></label>
          <label id="item17_2_label"><input name="radio17" id="item17_2_radio" type="radio" checked value="is Waiter" /><span class="fb-fieldlabel" id="item17_2_span">is Waiter</span></label>
        <?php }?>
        </div>
      </div>
    </div>
  </div>
  <div class="fb-captcha fb-item-alignment-center" id="fb-captcha_control"
  style="display: none; cursor: default;">
    <img src="editordata/images/recaptchawhite.png" />
  </div>
  <div class="fb-item-alignment-left fb-footer" id="fb-submit-button-div"
  style="min-height: 1px;">
    <input class="fb-button-special" id="fb-submit-button" style="background-image: url('<?php echo base_url();?>assets/css/images/btn_submit.png');"
    type="submit" data-regular="url('<?php echo base_url();?>assets/css/images/btn_submit.png')"
    value="OK" />
  </div>
</form>
</body>
</html>